package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.FacilitiesApplicationMapper;
import com.ruoyi.domain.FacilitiesApplication;
import com.ruoyi.service.IFacilitiesApplicationService;

/**
 * 设备申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-11
 */
@Service
public class FacilitiesApplicationServiceImpl implements IFacilitiesApplicationService 
{
    @Autowired
    private FacilitiesApplicationMapper facilitiesApplicationMapper;

    /**
     * 查询设备申请
     * 
     * @param fid 设备申请主键
     * @return 设备申请
     */
    @Override
    public FacilitiesApplication selectFacilitiesApplicationByFid(Long fid)
    {
        return facilitiesApplicationMapper.selectFacilitiesApplicationByFid(fid);
    }

    /**
     * 查询设备申请列表
     * 
     * @param facilitiesApplication 设备申请
     * @return 设备申请
     */
    @Override
    public List<FacilitiesApplication> selectFacilitiesApplicationList(FacilitiesApplication facilitiesApplication)
    {
        return facilitiesApplicationMapper.selectFacilitiesApplicationList(facilitiesApplication);
    }

    /**
     * 新增设备申请
     * 
     * @param facilitiesApplication 设备申请
     * @return 结果
     */
    @Override
    public int insertFacilitiesApplication(FacilitiesApplication facilitiesApplication)
    {
        return facilitiesApplicationMapper.insertFacilitiesApplication(facilitiesApplication);
    }

    /**
     * 修改设备申请
     * 
     * @param facilitiesApplication 设备申请
     * @return 结果
     */
    @Override
    public int updateFacilitiesApplication(FacilitiesApplication facilitiesApplication)
    {
        return facilitiesApplicationMapper.updateFacilitiesApplication(facilitiesApplication);
    }

    /**
     * 批量删除设备申请
     * 
     * @param fids 需要删除的设备申请主键
     * @return 结果
     */
    @Override
    public int deleteFacilitiesApplicationByFids(Long[] fids)
    {
        return facilitiesApplicationMapper.deleteFacilitiesApplicationByFids(fids);
    }

    /**
     * 删除设备申请信息
     * 
     * @param fid 设备申请主键
     * @return 结果
     */
    @Override
    public int deleteFacilitiesApplicationByFid(Long fid)
    {
        return facilitiesApplicationMapper.deleteFacilitiesApplicationByFid(fid);
    }
}
